gdkwindow: Remove the ability to call begin_paint_region more than once
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 21 Jun 2014 00:20:14 +0000 (20:20 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 21 Jun 2014 00:41:55 +0000 (20:41 -0400)
commitbe30e440c350f0f3e0f2572f7f3eab54ef96af0e
tree26a739ac35b8044ccea2b4fb9f0c243608d4d1c6
parentd48adf9cee7e340acd7f8b9a5f9716695352b848
gdkwindow: Remove the ability to call begin_paint_region more than once

Previously, each begin_paint_region added to a stack of current paints,
and when end_paint was called, the paint was popped off of the stack and
the surface was composited into the parent paint surface.

However, the code was broken in the case of a backend like Wayland which
didn't keep track of nested calls and simply wiped and returned the
native impl backing surface every time.

Since this feature is flat out unused by GTK+ and we don't want to
really support tricksy things like these for other clients, just remove
the feature. If somebody does call begin_paint_region more than once,
warn and return without doing anything.
gdk/gdkinternals.h
gdk/gdkwindow.c
gdk/quartz/gdkwindow-quartz.c
gdk/quartz/gdkwindow-quartz.h